package com.example.demo.importdemo.configrationbinddemo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
@Slf4j
public class ConfigurationService {


    @Autowired
    private Car car;

    @PostConstruct
    public void init(){

        log.info("Car Configuration: {}",car.getName());
  }
}
